package com.wx.tnsperson.service.impl;

import com.wx.tnsperson.mapper.ProUserInfoMapper;
import com.wx.tnsperson.model.ProUserInfoModel;
import com.wx.tnsperson.service.ProUserInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Classname ProUserInfoServiceImpl
 * @Description TODO
 * @Date 2020/6/26 19:13
 * @Created by lld
 */
@Service
public class ProUserInfoServiceImpl implements ProUserInfoService {

    @Autowired
    private ProUserInfoMapper proUserInfoMapper;

    @Override
    public List<ProUserInfoModel> findAll() {
        return proUserInfoMapper.findAll();
    }

    @Override
    public List<ProUserInfoModel> findById(Long id) {
        return proUserInfoMapper.findById(id);
    }

    @Override
    public Integer addUserInfo(ProUserInfoModel proUserInfoModel) {
        return proUserInfoMapper.addUserInfo(proUserInfoModel);
    }

    @Override
    public Integer delUser(Long id) {
        return proUserInfoMapper.delUser(id);
    }

    @Override
    public Integer delUpdate(Long id) {
        return proUserInfoMapper.delUpdate(id);
    }

    @Override
    public Integer updateUser(ProUserInfoModel proUserInfoModel) {
        return proUserInfoMapper.updateUser(proUserInfoModel);
    }


}
